﻿using System.Collections.Generic;

namespace Com.OpenCode.Framework.Core
{
    public class AddinComparer : Comparer<Addin>
    {
        public override int Compare(Addin x, Addin y)
        {
            if (x.StartLevel == y.StartLevel)
            {
                return 0;
            }
            if (x.StartLevel > y.StartLevel)
            {
                return 1;
            }
            return -1;
        }
    }
}